package com.zjfhw.pojo;


import java.io.Serializable;
import java.util.Date;

public class Article implements Serializable{
	private long id;
	private String title;
	private String author;
	private long author_id;
	private String content;
	private String pubDate;
	private int viewCount;
	private int reviewCount;
	private String author_img_url;
	public Article(long id,String title, String author, String content, String pubDate) {
		super();
		this.id=id;
		this.title = title;
		this.author = author;
		this.content = content;
		this.pubDate = pubDate;
	}
	
	public Article() {
		super();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getPubDate() {
		return pubDate;
	}
	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public long getAuthor_id() {
		return author_id;
	}

	public void setAuthor_id(long authorId) {
		author_id = authorId;
	}

	public int getViewCount() {
		return viewCount;
	}

	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}

	public int getReviewCount() {
		return reviewCount;
	}

	public void setReviewCount(int reviewCount) {
		this.reviewCount = reviewCount;
	}

	public String getAuthor_img_url() {
		return author_img_url;
	}

	public void setAuthor_img_url(String author_img_url) {
		this.author_img_url = author_img_url;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Article other = (Article) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
}
